import request from '@/utils/request'

// 查询仪器设备列表
export function listEquipment(query) {
  return request({
    url: '/eamp/equipment/list',
    method: 'get',
    params: query
  })
}

// 查询仪器设备详细
export function getEquipment(equipmentaId) {
  return request({
    url: '/eamp/equipment/' + equipmentaId,
    method: 'get'
  })
}

// 新增仪器设备
export function addEquipment(data) {
  return request({
    url: '/eamp/equipment',
    method: 'post',
    data: data
  })
}

// 修改仪器设备
export function updateEquipment(data) {
  return request({
    url: '/eamp/equipment',
    method: 'put',
    data: data
  })
}

// 删除仪器设备
export function delEquipment(equipmentaId) {
  return request({
    url: '/eamp/equipment/' + equipmentaId,
    method: 'delete'
  })
}

//出库仪器设备列表
export function listEquipmentout(query) {
  return request({
    url: '/eamp/equipment/out',
    method: 'post',
    data: query
  })
}
